<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "payment_log".
 *
 * @property int $log_id 自增ID
 * @property int $order_id 订单ID
 * @property string $channel_order_no 渠道订单号
 * @property string $third_order_no 第三方订单号
 * @property string $platform_order_no 平台订单号
 * @property string $channel_refund_no 渠道退款订单号
 * @property string $third_refund_no 第三方退款订单号
 * @property string $platform_refund_no 平台退款订单号
 * @property int $pay_status 1待付款,2取消支付,3已付款,4已退款
 * @property string $add_time 添加时间
 *
 * @property GoodsOrder $goodsOrder
 */
class PaymentLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'payment_log';
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getGoodsOrder(){
        return $this->hasOne(GoodsOrder::className(),['order_id'=>"order_id"]);
    }
}
